package xyz.xmh.pattern.behavioral.templatepattern;

/**
 * @author Administrator
 * <p>
 * 模板模式演示类
 */
public class TemplatePatternDemo {

    public static void main(String[] args) {
        // 创建实现了模板对象的实体对象
        Cricket cricket = new Cricket();
        // 调用模板方法
        cricket.play();

        System.out.println();

        Football football = new Football();
        football.play();
    }

}
